<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <link rel="stylesheet" href="styles/style.css">
        <link rel="stylesheet" href="styles/theme/atom-one-dark.css">
        <title>例子22-JS进阶（二）</title>
    </head>
    <body>
        <pre>
            <code>
                    // 例子22

                    var obj = new Object(); // new关键字方式创建对象
                    var obj = {}; // 对象字面量方式创建对象
            </code>
        </pre>
        <script src="scripts/libs/highlight.pack.js"></script>
        <script src="scripts/22.js"></script>
        <script>
            hljs.initHighlightingOnLoad();
        </script>
    </body>
</html>